package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class QuestionData {
	@JsonProperty("id")
	String id = "";
	@JsonProperty("forum_id")
	String forumId = "";
	@JsonProperty("body")
	String question = "";
	@JsonProperty("postedDate")
	String postedDate = "";
	@JsonProperty("user")
	String user_id = "";
	String parentPostId;
	@JsonProperty("user_full_name")
	String userFullName = "";

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getForumId() {
		return this.forumId;
	}

	public void setForumId(String forumId) {
		this.forumId = forumId;
	}

	public String getQuestion() {
		return this.question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getPostedDate() {
		return this.postedDate;
	}

	public void setPostedDate(String postedDate) {
		this.postedDate = postedDate;
	}

	public String getUser_id() {
		return this.user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getParentPostId() {
		return this.parentPostId;
	}

	public void setParentPostId(String parentPostId) {
		this.parentPostId = parentPostId;
	}

	public String getUserFullName() {
		return this.userFullName;
	}

	public void setUserFullName(String userFullName) {
		this.userFullName = userFullName;
	}

	protected QuestionData(Parcel in) {
		id = in.readString();
		forumId = in.readString();
		question = in.readString();
		postedDate = in.readString();
		user_id = in.readString();
		parentPostId = in.readString();
		userFullName = in.readString();
	}

	public QuestionData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(forumId);
		dest.writeString(question);
		dest.writeString(postedDate);
		dest.writeString(user_id);
		dest.writeString(parentPostId);
		dest.writeString(userFullName);
	}

	public static final Parcelable.Creator<QuestionData> CREATOR = new Parcelable.Creator<QuestionData>() {
		public QuestionData createFromParcel(Parcel in) {
			return new QuestionData(in);
		}

		public QuestionData[] newArray(int size) {
			return new QuestionData[size];
		}
	};
}
